#ifndef _ofxJSTuioClient_H_
#define _ofxJSTuioClient_H_

#include "ofxJavascript.h"
#include "ofxTuio.h"

// ========================================
// class ofxJSTuioClient
// ========================================
class ofxJSTuioClient
{
	public:
		/* javascript constructors */
		ofxJSTuioClient				(JSObject* pJSListener);
		/* end */
		~ofxJSTuioClient			();

	
		JSObject*					mp_jsListener;
		myTuioClient				m_tuio;

		void						tuioAdded		(ofxTuioCursor & tuioCursor);
		void						tuioRemoved		(ofxTuioCursor & tuioCursor);
		void						tuioUpdated		(ofxTuioCursor & tuioCursor);

		static void					initialize		();
		static void					finalize		();
		
		/* javascript functions */
		void			start		(int port);
		void			start		();
		void			getMessage	();
		void			drawCursors	();
		/* end */
		

		#include "js/ofxJSTuioClient.h"
};


#endif // _ofxJSTuioClient_H_
